package com.qyhl.school.school.home;


import com.qyhl.webtv.commonlib.entity.school.SchoolMainBean;

public class SchoolMainPresenter implements SchoolMainContract.SchoolMainPresenter {
    private SchoolMainContract.SchoolMainView mView;
    private SchoolMainModel mModel;

    public SchoolMainPresenter(SchoolMainContract.SchoolMainView mView) {
        this.mView = mView;
        this.mModel = new SchoolMainModel(this);
    }

    @Override
    public void getData() {
        mModel.getData();
    }

    @Override
    public void doSign(String username, int actId) {
        mModel.doSign(username,actId);
    }

    @Override
    public void setData(SchoolMainBean bean) {
        mView.setData(bean);
    }

    @Override
    public void setError(String msg) {
        mView.setError(msg);
    }

    @Override
    public void signResult(boolean isSuccess, String msg) {
        mView.signResult(isSuccess,msg);
    }
}
